#ifndef _SLAB_H_
#define _SLAB_H_

#define SLAB_CLASS_MAX		8

#include "scache.h"

typedef struct slab{
	scache *	sc[SLAB_CLASS_MAX];
} slab;

slab * slab_create();
int slab_add(slab *p, unsigned int slot_size, unsigned char key);
void * slab_alloc(slab *p, unsigned int size, unsigned char key);
int slab_clear(slab *p, unsigned int size, unsigned char key);
int slab_clear_all(slab *p);
int slab_destroy(slab *p);

#endif
